# -*- conding:UTF-8 -*-

'''
@ Project: P8_lxpro_7.7
@ File: migrate.py
@ Author: 罗婷
@ Date：2022/7/7 14:01

'''
from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager

from common.models import db
from common.models.users import *
from main import app
# 导入所有的模型类

manager = Manager(app)
migrate = Migrate(app, db)
manager.add_command('db', MigrateCommand)

if __name__ == '__main__':
    manager.run()








